import { request } from "@/utils/request";

export function addRegu(data: Object) {
  return request({
    url: "api/regu/addRegu.php",
    method: "post",
    data,
  });
}
export function getRegu(params:object) {
  return request({
    url: "api/regu/getAllRegu.php",
    method: "GET",
    params,
  });
}

export function GetReguInfo(params: any) {
  return request({
    url: `api/regu/getOneRegu.php`,
    method: "GET",
    params,
  });
}
export function EditReguInfo(data: any) {
  return request({
    url: `api/regu/updateRegu.php`,
    method: "POST",
    data,
  });
}
export function DelRegu(params: any) {
  return request({
    url: `api/regu/delRegu.php`,
    method: "GET",
    params,
  });
}
